<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>17-flex布局</title>
    <link rel="stylesheet" href="./css/basic.css">
    <style>
        .container_row{
         display: flex;
        /* flex-direction: row; */
         justify-content: space-evenly;
         height: 500px;
         background-color: paleturquoise;
        }

        .row_item{
            width: 100px;
            height: 100px;
            margin: 0 10px;
            background-color: pink;
            color: white;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .container_row :nth-child(1),.container_row :nth-child(6){
            flex: 1;
        }
        
        .row_item:nth-child(3){
            align-self: flex-end; 
        }
    </style>
</head>
<body>
    <h1>横向布局</h1>
    <div class="container_row">
        <div class="row_item">1</div>
        <div class="row_item">2</div>
        <div class="row_item">3</div>
        <div class="row_item">4</div>
        <div class="row_item">5</div>
        <div class="row_item">6</div>       
    </div>
    
</body>
</html>